#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "operationstation.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    _visual_data = new VisualData;

    Operationstation *pOpStation = new Operationstation(_visual_data, this);
    addDockWidget(Qt::RightDockWidgetArea, pOpStation);

    ui->graphicsView->setScene(_visual_data);

    setWindowState(windowState()|Qt::WindowMaximized);
}

MainWindow::~MainWindow()
{
    delete ui;
}
